import {
  VuexModule,
  Module,
  Mutation,
  getModule,
  Action
} from "vuex-module-decorators";
import store from "@/store";

@Module({
  dynamic: true,
  name: "logo",
  store
})
export default class Username extends VuexModule {
  private _usernameHead = "";

  get username() {
    return this._usernameHead;
  }

  @Mutation
  SET_USERNAME(name: string) {
    this._usernameHead = name;
  }
}

export const UsernameModule = getModule(Username);
